<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//首页
Route::get('/','IndexController@index');
//关于我们
Route::get('/aboutUs','IndexController@aboutUs');
//防沉迷
Route::get('/fangchengmi','IndexController@fangchengmi');
//交易纠纷
Route::get('/jiaoyijiufeng','IndexController@jiaoyijiufeng');
//家长监护
Route::get('/jiazhangjianhu','IndexController@jiazhangjianhu');
//用户协议
Route::get('/yonghuxieyi','IndexController@yonghuxieyi');
//联系我们
Route::get('/lianxi','IndexController@lianxi');
//支付
Route::get('/pay','IndexController@pay');
//注册页面
Route::get('/reg','IndexController@reg');
//注册
Route::post('/reg','IndexController@doReg');
//登录页面
Route::get('/login','IndexController@login');
//登录
Route::post('/login','IndexController@doLogin');
//退出登录
Route::get('/logout','IndexController@logout');
//文件下载
Route::get('/jiazhangjianhu/download',function(){
   return response()->download( public_path('/file/jiazhangjianhu.zip'));
});